﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using YWTSSys.BLL;
using YWTSSys.Library;
using YWTSSys.Model;

namespace YWTSSys.Web.MachineSys.YWTSWeb.yw
{
    public partial class ViewMyTelRecord : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.none };
            }
        }
        protected override string DWZRef
        {
            get { return "MyTelRecordMasterList"; }
        }

        protected int TelID
        {
            get
            {
                return GetRequestValue<int>("TelID", 0);

            }
        }

        private TelRecordInfo _objT = null;
        protected TelRecordInfo objT
        {
            get
            {
                if (_objT == null)
                {
                    _objT = TelRecordController.GetByID(TelID);
                }
                return _objT;

            }
        }

        private CustomerInfo _objC = null;
        protected CustomerInfo objC
        {
            get
            {
                if (_objC == null)
                {
                    _objC = CustomerController.GetById(objT.客户ID);
                }
                return _objC;

            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (TelID == 0)
            {
                Response.Write("请先选择一条通话记录查看");
                Response.End();
            }
            
        }
        
    }
}